package homework.day03;

import java.util.Scanner;

/**
 * @author ThinkBook
 */
public class Test08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输⼊⼀个⽉份：");
        int month = sc.nextInt();
        String season;
        switch (month) {
            case 12:
            case 1:
            case 2:
                season = "冬季";
                break;
            case 3:
            case 4:
            case 5:
                season = "春季";
                break;
            case 6:
            case 7:
            case 8:season = "夏季";
                break;
            case 9:
            case 10:
            case 11:
                season = "秋季";
                break;
            default:
                season = "输⼊⽉份有误";
                break;
        }
        System.out.println(month + " ⽉份属于: " + season);
    }
}
